#ifndef FORM_H
#define FORM_H

#include <QWidget>
#include<QTimer>
#include<QKeyEvent>

namespace Ui {
class Form;
}

class Form : public QWidget
{
    Q_OBJECT

public:
    explicit Form(QWidget *parent = 0);
    ~Form();
protected:

    void keyPressEvent(QKeyEvent*event) override;
    void keyReleaseEvent(QKeyEvent*event) override;

private:
    Ui::Form *ui;
    QList<int> keys;
    QTimer* keyRespondTimer;
    void slotTimeOut();
protected:
    void timerevent1();
    void timerevent2();
    void timerevent3();
    void timerevent4();
    void timerevent5();
    void timerevent6();
    void timerevent7();
    void timerevent8();
};

#endif // FORM_H
